package com.DataFactory.TaskManagement.converter;


import com.DataFactory.TaskManagement.model.bo.TaskBO;
import com.DataFactory.TaskManagement.model.entity.Task;
import com.DataFactory.TaskManagement.model.form.TaskForm;
import com.DataFactory.TaskManagement.model.vo.TaskPageVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.mapstruct.Mapper;

/**
 * @author shumm
 * @Description
 * @since 2024-03-27 21:35
 */
@Mapper(componentModel = "spring")
public interface TaskConverter {
    Page<TaskPageVO> bo2vo(Page<TaskBO> boPage);

    TaskPageVO bo2vo(TaskBO bo);

    Task form2entity(TaskForm form);

    Page<TaskPageVO> boPage2Pagevo(Page<TaskBO> boPage);

    TaskForm bo2from(TaskBO bo);

}
